<script setup>
import { inject, ref, reactive } from "vue";

inject('userName')

console.log(inject('userName'), 'injectttson')

</script>


<template>
    <div>子组件</div>
</template>